package com.freight.user.service;

import com.freight.core.base.FreightBaseService;
import com.freight.core.common.vo.SearchVo;
import com.freight.user.entity.CompanyUser;
import com.freight.user.vo.*;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.multipart.MultipartFile;

import java.util.List;

/**
 * 公司用户表接口
 * @author huyingtai
 */
public interface CompanyUserService extends FreightBaseService<CompanyUser, Long> {

    /**
     * 货主 --- 首页统计
     */
    HomePageStatisticsVo homePageStatistics();

    /**
     * 获取货主信息
     * @param userId
     * @return
     */
    CommpanyInformationVo getCommpanyInformation(Long userId);



    /**
     * 营业执照信息审核
     * @param companyId
     * @param companyStatus
     * @return
     */
    String updatecompanyStatus(Long companyId,Integer companyStatus,String reason);

    /**
    * 多条件分页获取
    * @param companyUser
    * @param searchVo
    * @param pageable
    * @return
    */
    Page<CompanyUser> findByCondition(CompanyUser companyUser, SearchVo searchVo, Pageable pageable);


    /**
     *
     * @param userId
     * @return
     */
    CompanyUser findByUserId(Long userId);


    Integer getCompanyState(Long userId);

    CompanyAllPicId getCompanyPicId(Long id);
}